package com.hongxun.project.assets.pPicture.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hongxun.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 现场照片表 p_picture
 * 
 * @author hongxun
 * @date 2019-03-19
 */
public class PPicture extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String id;
	/** 所属点位ID */
	private String pId;
	/** 照片名称 */
	private String name;
	/** 照片类型 */
	private String type;
	/** 照片排序 */
	private int sort;
	/** 照片地址 */
	private String address;
	/** 照片来源 */
	private String resour;
	/** 经度 */
	private BigDecimal lgt;
	/** 纬度 */
	private BigDecimal lat;
	/** 拍摄人ID */
	private String userId;
	/** 拍照时间 */
	private Date time;
	/** 备注 */
	private String remarks;
	/** 数据状态 */
	private String datastate;
	/** 任务ID */
	private String taskId;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setPId(String pId) 
	{
		this.pId = pId;
	}

	public String getPId() 
	{
		return pId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setSort(int sort)
	{
		this.sort = sort;
	}

	public int getSort()
	{
		return sort;
	}
	public void setAddress(String address) 
	{
		this.address = address;
	}

	public String getAddress() 
	{
		return address;
	}
	public void setResour(String resour) 
	{
		this.resour = resour;
	}

	public String getResour() 
	{
		return resour;
	}
	public void setLgt(BigDecimal lgt) 
	{
		this.lgt = lgt;
	}

	public BigDecimal getLgt() 
	{
		return lgt;
	}
	public void setLat(BigDecimal lat) 
	{
		this.lat = lat;
	}

	public BigDecimal getLat() 
	{
		return lat;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setTime(Date time) 
	{
		this.time = time;
	}

	public Date getTime() 
	{
		return time;
	}
	public void setRemarks(String remarks) 
	{
		this.remarks = remarks;
	}

	public String getRemarks() 
	{
		return remarks;
	}
	public void setDatastate(String datastate) 
	{
		this.datastate = datastate;
	}

	public String getDatastate() 
	{
		return datastate;
	}
	public void setTaskId(String taskId) 
	{
		this.taskId = taskId;
	}

	public String getTaskId() 
	{
		return taskId;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pId", getPId())
            .append("name", getName())
            .append("type", getType())
            .append("sort", getSort())
            .append("address", getAddress())
            .append("resour", getResour())
            .append("lgt", getLgt())
            .append("lat", getLat())
            .append("userId", getUserId())
            .append("time", getTime())
            .append("remarks", getRemarks())
            .append("datastate", getDatastate())
            .append("taskId", getTaskId())
            .toString();
    }
}
